package cn.tedu.jsd2205the.back.end.project.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("用于订单分页的dto")
public class OrderPagerDTO implements Serializable {
    @ApiModelProperty(value = "当前的页数", name = "page", required = true)
    private Integer page;

    @ApiModelProperty(value = "每页的记录数", name = "size", required = true)
    private Integer size;

    private Integer offset; // 偏移量 = (当前的页数 - 1) × 每页的记录数

    @ApiModelProperty(value = "订单状态", name = "state", required = true)
    private Integer state;

    @ApiModelProperty(value = "用户id", name = "userId", required = true)
    private String userId;
}